/*    */ package com.zimbra.cs.redolog.op;
/*    */ 
/*    */ import com.zimbra.cs.mailbox.MailboxOperation;
/*    */ import com.zimbra.cs.redolog.RedoLogInput;
/*    */ import com.zimbra.cs.redolog.RedoLogOutput;
/*    */ import java.io.IOException;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class AbortTxn
/*    */   extends ControlOp
/*    */ {
/*    */   MailboxOperation mTxnOpCode;
/*    */   
/*    */   public AbortTxn()
/*    */   {
/* 43 */     super(MailboxOperation.AbortTxn);
/*    */   }
/*    */   
/*    */   public AbortTxn(RedoableOp changeEntry) {
/* 47 */     super(MailboxOperation.AbortTxn, changeEntry.getTransactionId());
/* 48 */     setMailboxId(changeEntry.getMailboxId());
/* 49 */     this.mTxnOpCode = changeEntry.getOperation();
/*    */   }
/*    */   
/*    */   public MailboxOperation getTxnOpCode() {
/* 53 */     return this.mTxnOpCode;
/*    */   }
/*    */   
/*    */   protected String getPrintableData() {
/* 57 */     StringBuffer sb = new StringBuffer("txnType=");
/* 58 */     sb.append(this.mTxnOpCode.name());
/* 59 */     return sb.toString();
/*    */   }
/*    */   
/*    */   protected void serializeData(RedoLogOutput out) throws IOException {
/* 63 */     out.writeInt(this.mTxnOpCode.getCode());
/*    */   }
/*    */   
/*    */   protected void deserializeData(RedoLogInput in) throws IOException {
/* 67 */     this.mTxnOpCode = MailboxOperation.fromInt(in.readInt());
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/redolog/op/AbortTxn.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */